<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="../../Template.xhtml">
	<ui:define name="title">Edit Contents</ui:define>
	<ui:define name="body">

		<h:form>
			<p:panelGrid columns="2">
				<h2>Edit Contents</h2>
				<p:commandButton value="Back" action="ManageHelp.xhtml" />
			</p:panelGrid>
		</h:form>
		<br />
		<br />
		<br />
		<br />
		<h:form>
			<p:messages id="messages" showDetail="true" autoUpdate="true"
				closable="true" />
			<h:inputHidden value="#{helpMB.id}" />
			<p:panelGrid columns="2">
				<p:outputLabel value="Page : " />
				<p:inputText id="Page" value="#{helpMB.help.page}" required="true" />

				<p:outputLabel value="Topic : " />
				<p:inputText id="Topic" value="#{helpMB.help.topic}" required="true" />

				<p:outputLabel value="Contents" />
				<p:editor widgetVar="editorWidget" value="#{helpMB.help.contents}"
					width="1100" height="500" />

				<p:commandButton action="#{helpMB.Modifier()}" value="Update"
					icon="ui-icon-disk">
				</p:commandButton>

			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>